package com.megan.design.principle.compositionaggregation;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author: megan
 * @Data: 2018/8/24 上午7:19
 * @Description: 商品dao
 */
@Slf4j
public class ProductDao {

    private DBCommection dbCommection;

    public void setDbCommection(DBCommection dbCommection) {
        this.dbCommection = dbCommection;
    }

    public void addProduct(){
        String conn = dbCommection.getConnection();
        log.info("使用{}增加产品",conn);
    }
}
